package cxg.cloud.controller;

import cxg.cloud.entity.DeptPO;
import cxg.cloud.service.DeptService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/dept")
public class DeptController {

    @Resource
    private DeptService deptService;

    @GetMapping("/get")
    public DeptPO getById(@RequestParam("deptId") Integer deptId){
        return deptService.getById(deptId);
    }

}
